<?php
	require 'sessionInfo.class.php' ;
	SessionInfo::checkAdminLogin();
	require 'sql.class.php' ;
?>
<!DOCTYPE html>
<html>
<head>
	<title></title>
	<link rel="stylesheet" type="text/css" href="/mcnews/css/admin.css">
</head>

</div>

<div class="menu">
	<ul>
		<li><a href="member.php">用户管理</a></li>
		<li style="background-color: white;"><a href="class.php">文章分类</a></li>
		<li><a href="content.php">文章管理</a></li>
		<li><a href="loginout.php">退出</a></li>
	</ul>
</div>

<!-- 分类 -->
<div class="rightContent" id="rightContent">
	<div class="addMember">修改分类 id = <?php echo $_GET["id"] ?>
		<form action="classaction.php?type=1" method="POST">
			<input type="hidden" name="id" value="<?php echo $_GET["id"]; ?>">
			分类id:<input type="text" name="parentId" value="<?php echo $_GET["parentId"] ?>">
			分类名称:<input type="text" name="classname" value="<?php echo $_GET["classname"] ?>">
			<br/>
			<input type="submit" name="" value="修改">
		</form>
	</div>

</div>
<script type="text/javascript">
	var windowWidth = document.body.scrollWidth;
	var rightContent = windowWidth - 180 ;
	var windowHeight = document.body.clientHeight;
	document.getElementById("rightContent").style.width=rightContent + "px";
	document.getElementById("rightContent").style.height=windowHeight + "px";

	window.onresize=function(){  
	    var windowWidth = document.body.scrollWidth;
		var rightContent = windowWidth - 180 ;
		var windowHeight = document.body.clientHeight;

		document.getElementById("rightContent").style.width=rightContent + "px";
		document.getElementById("rightContent").style.height=windowHeight + "px";
    }  


</script>

</body>
</html>